<?php
	####################################################
	# library import and object instance.              #
	####################################################
	# 커먼 인클루드
	include_once( '../common.php' );

	####################################################
	# request data($_POST AND $_GET FROM $_REQUEST)    #
	####################################################
	# REQUEST(get and post variables)
	//$req = Request::clean_request($_REQUEST, FALSE);

	# GET(url variables)

	# POST(form variables)

	# Validation(special case validate)

	####################################################
	# implementation                                   #
	####################################################
	$sec->individual_access();
	$sec->run_cookie_check();
	$log = IoFileAndDir::nfilereader('..'.NLOG);
	$logger = NULL;
	foreach($log as $kye=>$val){
		$logger .= $val;
	}
?>
<?php
	# HTML START
	echo $html->custom_header(TITLE);
	echo $tplt->page_construct_javascript();
	echo $html->custom_js("{$JS}common.js");
	echo $html->custom_css("{$CSS}common.css");
	echo $html->custom_body();
?>
	<?php $tplt->app_head($NAVI)?>
	<?php $tplt->tiles_admin_sidebar($NAVI)?>
	<?php $tplt->tiles_admin_contents($pkname, $pname, $pdesc)?>
		<?php echo NForm::open(NULL, FALSE, "view");?>
			<?php echo NForm::mode('empty')?>
			<table class="tbl" border="0" cellpadding="3" cellspacing="0">
				<colgroup>
					<col width="40" />
					<col width="*" />
				</colgroup>
				<tr>
					<th>
						현재 n로그에 기록된 내용
					</th>
				</tr>
				<tr>
					<td>
						<xmp align="left" style="background-color:white; float:left;text-align:left; width:100%;display:block;font:normal 12px/16px 'dotumche';text-indent:0;\"><?=$logger?></xmp>
					</td>
				</tr>
			</table>
		<?php echo NForm::close();?>
		<div class="tblt">
			nlog를 : <span class="cbtn_l" onclick="$('#formx_view').submit();">비우기</span>&nbsp;
		</div>
<?php
	# HTML END
	echo $tplt->tiles_admin_footer();
	echo $tplt->page_destruct_javascript();
	include_once( '../endproc.php' );
	echo $html->html_footer();
?>
